<%-- 
    Document   : datosempleado
    Created on : 09-abr-2013, 20:38:49
    Author     : Alumno
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <script type="text/javascript" src="jquery/jquery-1.9.1.js"></script>
        <title>JSP Page</title>
    </head>
    <body>
       <form name="form1" id="form1">
            <h2>CONSULTAR EMPLEADO</h2>
            <p>ID Empleado
                <input type="text" name="codigo" id="codigo" />
                <input type="button" value="Consultar" name="btnConsultar"  id="btnConsultar" /></p>
            <div id="divResultado"></div>
        </form>
    </body>
    <script type="text/javascript" >
        $("#btnConsultar").click(function(){
            var data = $("#form1").serialize();
            $.post("Consulta", data, function(rpta){
                $("#divResultado").html("DATOS EMPLEADO <br> " + rpta);	
            } );
        });
    </script>
    
</html>
